package com.xyazm.order.statemachine.action.order.fulfill;

import com.xyazm.common.enums.OrderStatusChangeEnum;
import com.xyazm.common.enums.OrderStatusEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 订单已经履约 action
 * @author xuyou
 * @date 2023年02月09日 20:50
 */
@Slf4j
@Component
public class OrderFulFillAction extends AbstractAfterFulfillAction {
    @Override
    public OrderStatusChangeEnum event() {
        return OrderStatusChangeEnum.ORDER_FULFILLED;
    }

    @Override
    protected OrderStatusEnum handleStatus() {
        return OrderStatusEnum.PAID;
    }
}
